package org.krivtsun.scanlab.utils;

import org.krivtsun.scanlab.ScanLabApp;

import javax.swing.*;

/**
 * Common utility functions holder.
 *
 * @author Andrew Krivtsun
 */
public class Functions {

    private static final String ICONS_PATH = "icons/";
    private static final String ICONS_EXT = ".gif";

    public static Icon loadIcon(String resName) {
        return new ImageIcon(ScanLabApp.class.getResource(ICONS_PATH + resName + ICONS_EXT));
    }

    private Functions() {
    }
}
